package com.jiaai.cloud.wx.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 留言板信息表
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-09-22
 */
@TableName("t_guestbook")
public class TGuestbook extends Model<TGuestbook> {

    private static final long serialVersionUID = 1L;

    /**
     * 留言板id
     */
	@TableId(value="gb_id", type= IdType.AUTO)
	private Integer gbId;
    /**
     * 用户id
     */
	private Integer userid;
    /**
     * 留言板内容
     */
	@TableField("gb_content")
	private String gbContent;
    /**
     * 留言者的姓名
     */
	@TableField("gb_guestname")
	private String gbGuestname;
    /**
     * 留言者手机
     */
	@TableField("gb_phonenum")
	private String gbPhonenum;
    /**
     * 留言板的分类id
     */
	@TableField("gb_typeid")
	private Integer gbTypeid;
    /**
     * 留言板的创建日期
     */
	@TableField("gb_createdate")
	@JSONField(format = "YYYY-MM-dd HH:mm:ss")
	private Date gbCreatedate;


	public Integer getGbId() {
		return gbId;
	}

	public void setGbId(Integer gbId) {
		this.gbId = gbId;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getGbContent() {
		return gbContent;
	}

	public void setGbContent(String gbContent) {
		this.gbContent = gbContent;
	}

	public String getGbGuestname() {
		return gbGuestname;
	}

	public void setGbGuestname(String gbGuestname) {
		this.gbGuestname = gbGuestname;
	}

	public String getGbPhonenum() {
		return gbPhonenum;
	}

	public void setGbPhonenum(String gbPhonenum) {
		this.gbPhonenum = gbPhonenum;
	}

	public Integer getGbTypeid() {
		return gbTypeid;
	}

	public void setGbTypeid(Integer gbTypeid) {
		this.gbTypeid = gbTypeid;
	}

	public Date getGbCreatedate() {
		return gbCreatedate;
	}

	public void setGbCreatedate(Date gbCreatedate) {
		this.gbCreatedate = gbCreatedate;
	}

	@Override
	protected Serializable pkVal() {
		return this.gbId;
	}

}
